
<div class="content-wrapper" id="treeAndDetail">
    <div class="key_searchBox">
        <div class="searchResultLeft">
            <el-tree :data="treelist" :props="defaultProps" @node-click="handleNodeClick">
            </el-tree>
        </div>
    </div>
</div>
<script src="${ctx}/bower_components/vue/js/vue.min.js"></script>
<script src="${ctx}/bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript">
    var treeAndDetail=new Vue({
        el:'#treeAndDetail',
        data:{
            treelist:[{label:"111"},{label:"222"}],
            defaultProps: {
                children: 'children',
                label: 'label'
            },
        },
        methods:{
            handleNodeClick(data) {
                console.log(data)
            },
        }
    })
</script>
<style>
    iframe {
        border: none;
        height: 620px;
        margin-top: -148px;
    }
    #keywords li{
        height: 28px;
        line-height: 28px;
    }
    .key_searchImg {
        margin-left: 162px;
        margin-bottom: 50px;
    }
    .key_searchBox {
        width: 600px;
        height: 40px;
        margin: 200px auto;  /*大盒子页面居中 */
        position: relative;
    }
    .key_searchTop{
        width: 605px;
        height: 40px;
    }
    #key_searchTxt {
        width: 491px;
        height: 38px;
        border: 1px solid #CCCCCC;
        font-size: 18px;
        float: left;
        padding-left: 8px;
        outline: none;  /* 去除文本框获取焦点时的默认样式 */
    }
    #key_searchTxt:focus{
        border: 1px solid #3385FF;
        width: 491px;
    }
    #one_keySearch {
        width: 100px;
        height: 38px;
        float: left;
        background-color: #3385FF;
        color: white;
        border: none;
        font-size: 16px;
    }
    #keywords {
        position: absolute;  /* ul相对父盒子定位 */
        top: 152px;
        left: 0;
        border: 1px solid #ccc;
        border-top: none;
        width: 491px;
        padding-left: 0;
        margin-top: 1px;
        display: none;  /* 把ul隐藏起来，在获得相关内容时再显示出来，这样在搜索之前，页面只有一个搜索框和按钮 */
    }
    li {
        line-height: 24px;
        font-size: 16px;
        padding-left: 8px;
    }
</style>
